package com.sxhalo.manage.map;

/**
 * UserTasksId entity. @author MyEclipse Persistence Tools
 */

public class UserTasksId implements java.io.Serializable {

	// Fields

	private Integer userId;
	private Integer taskId;

	// Constructors

	/** default constructor */
	public UserTasksId() {
	}

	/** full constructor */
	public UserTasksId(Integer userId, Integer taskId) {
		this.userId = userId;
		this.taskId = taskId;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getTaskId() {
		return this.taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UserTasksId))
			return false;
		UserTasksId castOther = (UserTasksId) other;

		return ((this.getUserId() == castOther.getUserId()) || (this
				.getUserId() != null && castOther.getUserId() != null && this
				.getUserId().equals(castOther.getUserId())))
				&& ((this.getTaskId() == castOther.getTaskId()) || (this
						.getTaskId() != null && castOther.getTaskId() != null && this
						.getTaskId().equals(castOther.getTaskId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getTaskId() == null ? 0 : this.getTaskId().hashCode());
		return result;
	}

}